package forms

type LoginPassword struct {
	Phone     string `form:"phone" json:"phone" binding:"required,phone"`
	Password  string `form:"password" json:"password" binding:"required,min=6,max=16"`
	Captcha   string `form:"captcha" json:"captcha" binding:"required,max=6"`
	CaptchaId string `form:"captcha_id" json:"captcha_id" binding:"required"`
}

type RegisterForm struct {
	Phone      string `form:"phone" json:"phone" binding:"required,phone"`
	Password   string `form:"password" json:"password" binding:"required,min=6,max=16"`
	RePassword string `form:"re_password" json:"re_password" binding:"required,min=6,max=16"`
	Code       string `form:"code" json:"code" binding:"required,min=6,max=6"`
}
